import { createRouter, createWebHistory } from "vue-router";

import Home from "@/pages/Page2.vue";
import LoginPage from "@/pages/LoginPage.vue";

// 参考 https://cloud.tencent.com/developer/article/2340524


const router = createRouter({
  //如果没有指定历史，则点击浏览器返回键，不会有响应
  history: createWebHistory(import.meta.env.BASE_URL),
  //这里指定的路径对应的页面
  routes:[
    { path: "/", redirect: "/login" },
    { path: "/login", name: 'LoginPage',component: LoginPage },
    { path: "/home", component: Home ,
      children:[
        
      ]
    },
  ]
});
export default router;
